package com.projectName.www.dao;

import java.sql.ResultSet;

public class S_J_updatadishes_dao {
    public static ResultSet fill() throws Exception {
        String sql="select * from dishes";
        ResultSet resultSet = BaseDao.executeQuery(sql);
        return resultSet;
    }
    public static boolean updatadishe(String name,String des,String money) throws Exception {
        String sql="update  dishes set des=?,money=? where name= ? ";
        int i=BaseDao.executeUpdata(sql,des,money,name);
        if(i>0)return true;
        else return false;
    }
}
